package com.smarthospital.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * create by sym  2021/6/12 17:28.
 * 图文聊天对象
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "图文聊天对象")
public class SocketDTO {

    @ApiModelProperty("订单id = 聊天房间id")
    private String orderId;
    @ApiModelProperty("未读消息数量")
    private Integer number;
    @ApiModelProperty("头像")
    private String pic;
    @ApiModelProperty("用户id")
    private Long  userInfoId;
    @ApiModelProperty("昵称")
    private String nickName;
    @ApiModelProperty("最新消息")
    private String lastMsg;
    @ApiModelProperty("最新消息 发送时间")
    private Date time;
}
